export default () => {
    return async (ctx: any, next) => {
      ctx.socket.emit("connection", "you has connected1");
      console.log('connection');
      await next();
  
      console.log('you disconnection1');
    };
  };
  